package tech.aichan.AiQA.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author mengyu
 * @date 2024/03/03 9:26
 */
@TableName(value = "item")
@Data
public class Item implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String itemName;

    private Double price;

    // Json数组
    private String tags;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
